package com.BookmanageSystem.dao;

import com.BookmanageSystem.entity.Book;
import com.BookmanageSystem.entity.BookType;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookDao {
    List<Book> getBookList();
    List<BookType> getTypeList();
    List<Book> getBookListByName(@Param("bookName") String bookName);
    Integer deleteBookById(String bookId);
    Integer deleteTypeById(String typeId);
    Book getBookById(String bookId);
    Integer updateBook(@Param("book")Book book);
    Integer updateType(@Param("type")BookType type);
    Integer addBook(@Param("book")Book book);
    List<BookType> getTypeListByName(String typeName);
    Integer addType(String typeName);
    BookType getTypeById(String typeId);
    Integer outBook(@Param("book")Book book);
    Integer inBook(String bookId);
}
